<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

/**
 * 微信关键词
 */
class CreateWechatKeyword extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('wechat_keyword', function (Blueprint $table) {
            $table->increments('id');
            $table->string('ruleName')->comment('规则名');
            $table->string('keyword')->comment('关键词');
            $table->tinyInteger('displayorder')->default(0)->comment('关键词优先级别');
            $table->tinyInteger('status')->default(1)->comment('是否启用 1=是 0=否');
            $table->string('triggerCount')->default(0)->comment('触发总次数');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('wechat_keyword');
    }
}
